#coding:utf-8
import urllib2
import json


class Monitor(object):
        # def __init__(self,url,data,headers):
        #         self.url=url
        #         self.data=data
        #         self.headers=headers

        def send_res(self,url,data,headers):
                dd = json.dumps(data)
                request = urllib2.Request(url=url, data=data, headers=headers)
                response = urllib2.urlopen(request)
                res = response.read()
                # print res
                return res
def main():
        mapi=Monitor()


if __name__ == '__main__':
    main()

